#!/usr/bin/env bash

MYDIR=$(cd "$(dirname "$0")"; pwd)
pushd "${MYDIR}"

mkdir -p b64
[[ -f dist ]] && rm -f dist
ln -sf b64 dist

pushd src || exit 1
autoreconf || exit 1
popd

pushd dist
../src/configure \
    --srcdir=../src \
    --prefix=/usr/local \
    --enable-win64 --disable-win16 --disable-tests \
    --without-mingw \
    --quiet
popd

popd
